package com.chaoxing.convert;

import com.chaoxing.bean.DO.Book;
import com.chaoxing.bean.VO.BookVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface BookConvert {

    BookConvert INSTANCE = Mappers.getMapper(BookConvert.class);
    @Mappings({
            @Mapping(source = "bookName", target = "name"),
            @Mapping(source = "authName", target = "auth"),
    })
    Book bookVOToBookDO(BookVO bookVO);




}
